package java_DesignPattern.SixPrinciple.LiskovSubstitutionPrinciple.right;

import java_DesignPattern.SixPrinciple.LiskovSubstitutionPrinciple.fault.Rectangle;

/**
 * 正方形类
 */
public class Square implements FourLen {

    //设置边长
    private int len;

    @Override
    public void setLen(int len) {
        this.len = len;
    }

    @Override
    public void setWidth(int width) {
        this.len = width;
    }

}
